#include <stdio.h>
#include <stdlib.h>
int main()
{
	FILE *fp;
	char ch;
	int flag=0;
	if((fp=fopen("file20250601.txt","w+"))==NULL)
	{
		printf("Can not open the file.");
		exit(0);
	}
	while(1)
	{
		scanf("%c",&ch);
		if(ch!='\n')
		{
			fputc(ch,fp);
			flag=0;
		}
		else
			flag++;
		if(flag==2)
		break;
	}
	fclose(fp);
	return 0;
}
